import request from '@/plugins/request';

//通话录音列表
export function getVoice (data) {
    return request({
        url: '/v1/customer/sms/voice-list',
        method: 'get',
        params: data
    });
}

//短信列表
export function getSmsList (data) {
    return request({
        url: '/v1/customer/sms/sms-list',
        method: 'get',
        params: data
    });
}
//短信删除
export function deleteSms (data) {
    return request({
        url: '/v1/customer/sms/sms-del',
        method: 'post',
        data
    });
}

//微信列表
export function customerwechatlist (data) {
    return request({
        url: 'v1/customer/wechat/list',
        method: 'get',
        params: data
    });
}

//微信好友列表
export function customerwechatcontactlist (data) {
    return request({
        url: 'v1/customer/wechat/contact-list',
        method: 'get',
        params: data
    });
}
// 创建同步微信好友队列
export function wechatfriendQueue(data) {
    return request({
        url: '/v1/customer/wechat/repair-wechat-friend-queue',
        method: 'get',
        params: data
    });
}
// 创建同步微信好友聊天记录
export function wechatmessageQueue(data) {
    return request({
        url: '/v1/customer/wechat/repair-wechat-message-queue',
        method: 'get',
        params: data
    });
}

// 微信好友聊天列表
export function customerwechatmessagelist(data) {
    let datas = data;
    if(data.date) {
        datas.date = dayjs(data.date).format('YYYY-MM-DD');
    }
    return request({
        url: '/v1/customer/wechat/message-list',
        method: 'get',
        params: datas
    });
}
// 创建同步微信好友聊天大图记录
export function wechatmessagefileQueue(data) {
    return request({
        url: 'v1/customer/wechat/repair-wechat-message-file-queue',
        method: 'get',
        params: data
    });
}
// 微信好友列表【分类】
export function WechatFriendList(data) {
    return request({
        url: '/v1/customer/wechat/contact-list-by-weiliao',
        method: 'get',
        params: data
    });
}

// 转换格式
export function customerwechatconverfile(data) {
    return request({
        url: '/v1/customer/wechat/conver-file',
        method: 'post',
        data
    });
}
// 添加患者病历图片
export function patientindexaddmedicalimg(data) {
    return request({
        url: '/v1/patient/index/add-medical-img',
        method: 'post',
        data
    });
}
// 查看消息详情
export function wechatMessageInfo(data) {
    return request({
        url: 'v1/robot/index/message-info',
        method: 'get',
        params: data
    });
}